'use strict';

const { Controller } = require('egg');

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    let res = await this.service.user.getUser()
    ctx.body = {
      code: 200,
      message: "success",
      data: res
    }
  }
}

module.exports = HomeController;
